// pages/me/alter-boss/alter-boss.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    nickName:'',
    gender:'',
    phone:''
  },
  formSubmit: function (e) {
    console.log('form发生了submit事件，携带数据为：', e.detail.value);

    let {
      nickName,
      gender,
      phone
    } = e.detail.value;
    console.log(nickName);
    wx.request({
      url: '',
      header: {
        "Content-Type": " "
      },
      method: "POST",
      data: {
        nickName: e.detail.value.nickName,
        gender: e.detail.value.gender,
        phone: e.detail.value.phone,
      },
      success: function (res) {
        wx.showModal({
          title: "提示",

          content: '添加成功!',
          showCancel: false,
        })
      }
    })

  },
  
})